﻿using BackData;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Server.API.Application.Command.Goods
{
    public class GoodsUpdateCommand : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 商品id
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(15)]
        public string? GoodsName { get; set; } 
        /// <summary>
        /// 生产批次
        /// </summary>
        [StringLength(15)]
        public string Order { get; set; }

        /// <summary>
        /// 保质期
        /// </summary>
        public float? Expired { get; set; } 

        /// <summary>
        /// 生产许可证号
        /// </summary>
        [StringLength(30)]
        public string? Allownum { get; set; } 

        /// <summary>
        /// 生产企业
        /// </summary>
        [StringLength(15)]
        public string? Companyname { get; set; }


        /// <summary>
        /// 封面(图片路径)
        /// </summary>
        public string? Cover { get; set; }

        /// <summary>
        /// 检查报告(图片路径)
        /// </summary>
        public string? Check { get; set; } 

        /// <summary>
        /// 完成状态
        /// </summary>
        [StringLength(15)]
        public string Finiststate { get; set; } 

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(15)]
        public string Creator { get; set; } 

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Createtime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改人
        /// </summary>
        [StringLength(15)]
        public string Modifier { get; set; } 

        /// <summary>
        /// 养殖外键
        /// </summary>
        public long Breedid { get; set; } 

        /// <summary>
        /// 屠宰外键
        /// </summary>
        public long Killid { get; set; } 

        /// <summary>
        /// 深加工外键
        /// </summary>
        public long Deepprocessid { get; set; } 
    }
}
